#define _CRT_SECURE_NO_WARNINGS
#include"heap.h"

int main()
{
	Heap hp;
	int arr[] = { 5,4,3,2,1 };
	HeapCreate(&hp, arr, sizeof(arr) / sizeof(int));
	printf("%d\n\n", HeapSize(&hp));
	while (!HeapEmpty(&hp)) {
		printf("%d\n", HeapTop(&hp));
		HeapPop(&hp);
	}
	HeapDestory(&hp);
	return 0;
}